<extend name='Public/_Main' />
<block name='title'>
    <title>修改用户</title>
</block>
<block name='right'>
    <div class='container-fluid'>
        <div class='row'>
            <form class="require" action="{:U('romUser')}" method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">所属角色<span class="Validform_checktip"></span></label>
                    <select name="group_id" class='form-control selectpicker' disabled="disabled">
                        <foreach name="list.group" item="v" class='form-control' datatype='*'>
                            <option value="{$v['id']}" {$v[ 'selected']}>
                                {$v.title}
                            </option>
                        </foreach>
                    </select>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">用户名<span class="Validform_checktip"></span></label>
                    <input type="text" class="form-control" placeholder="用户名" datatype='*' nullmsg='请填写用户名' errormsg='格式错误' name="username" value='{$list.userinfo.0.username}' disabled="disabled">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">密码<span class="Validform_checktip">不修改即留空</span></label>
                    <input type="password" class="form-control" placeholder="留空即不修改" datatype='*' nullmsg='请填写密码' errormsg='格式错误' name="password" ignore="ignore" value=''>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">邮箱<span class="Validform_checktip"></span></label>
                    <input type="text" class="form-control" placeholder="邮箱" datatype='e' nullmsg='请填写邮箱' errormsg='格式错误' name="email" value='{$list.userinfo.0.email}'>
                </div>
               
                <input type='hidden' name='id' value='{$list.userinfo.0.id}' />
                <div class='col-xs-6'>
                    <button class="btn btn-lg btn-primary btn-block" type="submit">保存</button>
                </div>
                <div class='col-xs-6'>
                    <button class="btn btn-lg btn-default btn-block" type="button" onclick="javascript:history.back(-1);">返回</button>
                </div>
            </form>
        </div>
    </div>
</block>
